/*
 * ----------------------------------------------------------------------------
 * "THE BEER-WARE LICENSE" (Revision 42):
 * <rom.prevot@gmail.com> wrote this file. As long as you retain this notice you
 * can do whatever you want with this stuff. If we meet some day, and you think
 * this stuff is worth it, you can buy me a beer in return R. Prevot
 * ----------------------------------------------------------------------------
 */

/******************************************************************************\
 *          ____                _______    _____ _             _              *
 *         |  _ \              |__   __|  / ____| |           | |             *
 *         | |_) | ___  _ __ _ __ | | ___| (___ | |_ ___   ___| | __          *
 *         |  _ < / _ \| '__| '_ \| |/ _ \\___ \| __/ _ \ / __| |/ /          *
 *         | |_) | (_) | |  | | | | | (_) |___) | || (_) | (__|   <           *
 *         |____/ \___/|_|  |_| |_|_|\___/_____/ \__\___/ \___|_|\_\          *
 *                                                                            *
\******************************************************************************/

package app.events.eventobjects;

import app.models.Vente;
import java.util.EventObject;

/**
 *
 * @author Ghost
 */
public class VenteUpdatedEvent extends EventObject{
    private Vente oldVente;
    private Vente newVente;

    public VenteUpdatedEvent(Vente oldVente, Vente newVente, Object source) {
        super(source);
        this.oldVente = oldVente;
        this.newVente = newVente;
    }

    public Vente getNewVente() {
        return newVente;
    }

    public void setNewVente(Vente newVente) {
        this.newVente = newVente;
    }

    public Vente getOldVente() {
        return oldVente;
    }

    public void setOldVente(Vente oldVente) {
        this.oldVente = oldVente;
    }
    
    
}
